#/bin/bash


#获取总内存
Mem=`cat /proc/meminfo | grep "MemTotal" | awk -F" " '{print $2}'`
pre=`expr 1000 \* 1000`
MemTotal=`expr $Mem / $pre`
echo "memoryToal $MemTotal G"